package com.ruoyi.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 平台职员对象 staff
 * 
 * @author ruoyi
 * @date 2020-10-07
 */
public class Staff extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Integer id;

    /** 代码 */
    @Excel(name = "代码")
    private String code;

    /** 密码 */
    @Excel(name = "密码")
    private String pwd;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 所在部门 */
    @Excel(name = "所在部门")
    private String departmentName;

    /** 角色代码 */
    private String roleCode;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String roleName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDt;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setPwd(String pwd) 
    {
        this.pwd = pwd;
    }

    public String getPwd() 
    {
        return pwd;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDepartmentName(String departmentName) 
    {
        this.departmentName = departmentName;
    }

    public String getDepartmentName() 
    {
        return departmentName;
    }
    public void setRoleCode(String roleCode) 
    {
        this.roleCode = roleCode;
    }

    public String getRoleCode() 
    {
        return roleCode;
    }
    public void setRoleName(String roleName) 
    {
        this.roleName = roleName;
    }

    public String getRoleName() 
    {
        return roleName;
    }
    public void setCreateDt(Date createDt) 
    {
        this.createDt = createDt;
    }

    public Date getCreateDt() 
    {
        return createDt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("pwd", getPwd())
            .append("name", getName())
            .append("departmentName", getDepartmentName())
            .append("roleCode", getRoleCode())
            .append("roleName", getRoleName())
            .append("createDt", getCreateDt())
            .toString();
    }
}
